FROM ubuntu:focal

# apt install ca-certificates 确保不会出现：
# Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification.
# No system certificates available. Try installing ca-certificates.
RUN apt update  \
    && apt install ca-certificates -y  \
    && echo "# 默认注释了源码镜像以提高 apt update 速度，如有需要可自行取消注释" > /etc/apt/sources.list   \
    && echo "deb https://mirrors.bfsu.edu.cn/ubuntu/ focal main restricted universe multiverse" >> /etc/apt/sources.list    \
    && echo "# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal main restricted universe multiverse" >> /etc/apt/sources.list  \
    && echo "deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse" >> /etc/apt/sources.list    \
    && echo "# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse" >> /etc/apt/sources.list  \
    && echo "deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse" >> /etc/apt/sources.list  \
    && echo "# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse" >> /etc/apt/sources.list    \
    && echo "deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-security main restricted universe multiverse" >> /etc/apt/sources.list   \
    && echo "# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-security main restricted universe multiverse" >> /etc/apt/sources.list \
    && echo "" >> /etc/apt/sources.list \
    && echo "# 预发布软件源，不建议启用" >> /etc/apt/sources.list   \
    && echo "# deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse" >> /etc/apt/sources.list \
    && echo "# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse" >> /etc/apt/sources.list\
    && apt update


# docker build -t bfsu-ubuntu-focal .